# @File   :  model.py
# @Time   :  2020/05/15 16:19:24
# @Author : hyh
# here put the import lib
import random


class Fake:
    kind = ''
    min = 0
    max = 0

    def __init__(self, data_dict):
        for key, value in data_dict.items():
            if hasattr(self, key):
                setattr(self, key, value)

    def value(self):
        if self.kind == 'int':
            return random.randint(self.min, self.max)
        else:
            return ''
